package com.kedou.sdk.params.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

public class RedpackageItem implements Parcelable {

    @SerializedName("id")
    private String id;

    /**
     * 支付渠道类型ID
     */
    @SerializedName("type")
    private int type;

    /**
     * 支付渠道主题
     */
    @SerializedName("money")
    private String money;

    /**
     * 支付渠道见到描述信息
     */
    @SerializedName("title")
    private String title;

    /**
     * 支付渠道icon图标下载地址
     */
    @SerializedName("hongbao_status")
    private RedpackageStatus hongbaoStatus;

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getMoney() {
        return money;
    }

    public void setMoney(String money) {
        this.money = money;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public RedpackageStatus getHongbaoStatus() {
        return hongbaoStatus;
    }

    public void setHongbaoStatus(RedpackageStatus hongbaoStatus) {
        this.hongbaoStatus = hongbaoStatus;
    }

    public RedpackageItem() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.type);
        dest.writeString(this.money);
        dest.writeString(this.title);
        dest.writeParcelable(this.hongbaoStatus,flags);
        dest.writeString(this.id);

    }

    protected RedpackageItem(Parcel in) {
        this.type = in.readInt();
        this.money = in.readString();
        this.title = in.readString();
        this.hongbaoStatus = in.readParcelable(RedpackageStatus.class.getClassLoader());
        this.id = in.readString();
    }

    public static final Creator<RedpackageItem> CREATOR = new Creator<RedpackageItem>() {
        @Override
        public RedpackageItem createFromParcel(Parcel source) {
            return new RedpackageItem(source);
        }

        @Override
        public RedpackageItem[] newArray(int size) {
            return new RedpackageItem[size];
        }
    };

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
}
